/**
 * 产线信息 api 封装
 *
 * @Author:    lmabbe
 * @Date:      2025-06-26 19:12:15
 * @Copyright  lmabbe
 */
import { getRequest, postRequest } from '/@/lib/axios';

export const productLineInfoApi = {
  /**
   * 分页查询  @author  lmabbe
   */
  queryPage: (param) => {
    return postRequest('/productLineInfo/queryPage', param);
  },

  /**
   * 增加  @author  lmabbe
   */
  add: (param) => {
    return postRequest('/productLineInfo/add', param);
  },

  /**
   * 修改  @author  lmabbe
   */
  update: (param) => {
    return postRequest('/productLineInfo/update', param);
  },

  /**
   * 删除  @author  lmabbe
   */
  delete: (id) => {
    return getRequest(`/productLineInfo/delete/${id}`);
  },

  /**
   * 批量删除  @author  lmabbe
   */
  batchDelete: (idList) => {
    return postRequest('/productLineInfo/batchDelete', idList);
  },

  /**
   * 批量删除  @author  lmabbe
   */
  all: () => {
    return getRequest('/productLineInfo/all');
  },
};
